// uni_modules/uni-icons/components/uni-icons/unicons_file_vue.js
import iconSet from './TS_unicons_file' // ✅ 改为默认导入

export default {
  name: 'uniicons',
  functional: true,
  props: {
    name: {
      type: String,
      required: true
    }
  },
  render(h, { props }) {
    const IconComponent = iconSet[props.name]
    
    return IconComponent 
      ? IconComponent(h) 
      : h('span', {
          style: { color: 'red' }
        }, `? ${props.name}`)
  }
}